package com.sjqi.demo.config;

import com.sjqi.demo.sqlsource.SqlSource;
import lombok.Data;

/**
 * @author qishaojun
 * 封装了mapper文件中的一个statement信息
 */
@Data
public class MappedStatement {
    private String statementId;

    private String statementType;

    private String resultType;

    private Class resultTypeClass;

    private SqlSource sqlSource;

    public MappedStatement(String statementId, Class resultTypeClass, String statementType, SqlSource sqlSource) {
        this.statementId = statementId;
        this.statementType = statementType;
        this.resultTypeClass = resultTypeClass;
        this.sqlSource = sqlSource;
    }
}
